#ifndef REPOSELFUPDATEDIALOG_H
#define REPOSELFUPDATEDIALOG_H

#include <QDialog>
#include <QProcess>

namespace Ui {
class RepoSelfUpdateDialog;
}

class RepoSelfUpdateDialog : public QDialog
{
    Q_OBJECT

public:
    explicit RepoSelfUpdateDialog(QWidget *parent = nullptr);
    ~RepoSelfUpdateDialog();

    void setWorkdir(const QString &newWorkdir);

    void start();

private:
    Ui::RepoSelfUpdateDialog *ui;

    QString m_workdir;
    QProcess m_process;
};

#endif // REPOSELFUPDATEDIALOG_H
